﻿@model BusinessPromotionViewModel
@{
    ViewBag.Title = "Business Promotion";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
@section Styles
{
    <style type="text/css">
        .container, .diver
        {
            float: left;
        }
        .delimeter
        {
            float: left;
            margin: 0 5px;
        }
    </style>
}
<!--start bradecums-->
<div class="bradecums_bar">
    Business <span>&raquo;</span> <a href="@Url.Action("GeneralInfo", new { id = Model.Promotion.BusinessId })">@Model.BusinessName</a>
    <span>&raquo;</span> <a href="@Url.Action("Promotions", new { id = Model.Promotion.BusinessId })">
        Promotions</a> <span>&raquo;</span>
    @Model.Promotion.Name</div>
<!--end bradecums-->
<!--start add new part-->
<div class="add_new_zatify_user" style="border-top: 1px solid #d9dfe4;">
    <div class="business_profile_screens_form_border">
        <div class="z_cms_coloum" style="border-right: 1px solid #d9dfe4;">
            <table border="0" cellpadding="0" cellspacing="0">
                <tr valign="top">
                    <td width="176">
                        <strong>Categories</strong><br />
                        <span style="color: #F00;">$@Model.Promotion.BaseCostTimingFixedCost.ToString("0.00")/flat and $@Model.Promotion.BaseCostTimingRatePerPush.ToString("0.00")/push</span>
                    </td>
                    <td width="10">
                        :
                    </td>
                    <td width="222">
                        @foreach (var category in Model.Promotion.Categories)
                        {
                            <div class="container">
                                @Html.CategoryBreadCrumbs(category, x => Url.Action("Categories", "Registration"), String.Empty)
                            </div>
                            <br />
                        }
                    </td>
                </tr>
                <tr valign="top">
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr valign="top">
                    <td>
                        <strong>Proximity Radius</strong><br />
                        <span style="color: #F00;">$@Model.Promotion.PromixityRadiusFixedCost.ToString("0.00")/flat and $@Model.Promotion.PromixityRadiusRatePerPush.ToString("0.00")/push</span>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        @Model.Promotion.ProximityRadius.ToRadius @Model.Promotion.ProximityRadius.RadiusUnits
                    </td>
                </tr>
                <tr valign="top">
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr valign="top">
                    <td>
                        <strong>Timing</strong><br />
                        <span style="color: #F00;">$@Model.Promotion.CostTimingFixedCost.ToString("0.00")/flat and $@Model.Promotion.CostTimingRatePerPush.ToString("0.00")/push</span>
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        @Model.PromoSchedulingText
                    </td>
                </tr>
                <tr valign="top">
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr valign="top">
                    <td>
                        <strong>Budget</strong><br />
                        <strong>Max Pushes</strong><br />
                        <strong>Spent</strong><br />
                        <strong>Unused</strong>
                    </td>
                    <td>
                        :<br />
                        :<br />
                        :<br />
                        :<br />
                    </td>
                    <td>
                        <span>$@(Model.Promotion.CampaignBudget.HasValue ? Model.Promotion.CampaignBudget.Value.ToString("0.00") : "0.00")</span><br />
                        <span>@Model.Promotion.MaxPushes</span><br />
                        $@(Model.Promotion.SpentMoney.HasValue ? Model.Promotion.SpentMoney.Value.ToString("0.00") : "0.00") (@(Model.Promotion.SpentPushes.HasValue ? Model.Promotion.SpentPushes.Value : 0) pushes)<br />
                        $@(Model.Promotion.UnusedMoney.HasValue ? Model.Promotion.UnusedMoney.Value.ToString("0.00") : "0.00") (@(Model.Promotion.UnusedPushes.HasValue ? Model.Promotion.UnusedPushes.Value : 0) pushes)<br />
                    </td>
                </tr>
                <tr valign="top">
                    <td colspan="3">
                        &nbsp;
                    </td>
                </tr>
                <tr valign="top">
                    <td>
                        <strong>Status</strong><br />
                    </td>
                    <td>
                        :
                    </td>
                    <td>
                        <span style="color: #F00;">
                            @switch (Model.Promotion.StatusCode)
                            {
                                case "ACT":
                                <text>Active</text>
                                    break;
                                case "PEN":
                                <text>Pending</text>
                                    break;
                                case "COM":
                                <text>Completed</text>
                                    break;
                            }
                        </span>
                    </td>
                </tr>
            </table>
        </div>
        <div class="z_cms_coloum">
            <table border="0" cellpadding="0" cellspacing="5">
                <tr>
                    <td>
                        <label class="label_span_text">
                            <span>Coupon Image</span></label>
                        <label>
                            @*<img src="@Url.Content("~/Content/zatify/images/user_profile_picture.jpg")" alt="" />*@
                            @if (Model.Promotion.Picture == null)
                            {
                                @:None
                                    }
                            else
                            {
                                <img width="150" height="150" src="@Url.Action("GetPromotionImage", "Business", new { Model.Promotion.PromotionId })" alt="" />
                            }
                        </label>
                        <br />
                        <br />
                    </td>
                </tr>
                <tr>
                    <td>
                        <br />
                        <label class="label_span_text">
                            <strong>Name:</strong> <span>@Model.Promotion.Name</span>
                        </label>
                        <label class="label_span_text">
                            <strong>Text:</strong> <span>@Model.Promotion.PromotionText</span>
                        </label>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="clearfix">
    </div>
</div>
<div class="clearfix">
</div>
<!--end add new part-->
